package cn.edu.scau.sec.zhangsan.singleton;

public class President {
	private static President president;
	private String name;
	
	private President(String name) {
		this.name =name;
	}
	
	public static President getPresident(String name) {
		if(president == null) {
			president = new President(name);
		}
		return president;
	}
	
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
}